using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class MasterPageMcSig : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)    
    {
      //btnPlanInversion.Visible = false;
      //  btnPlanPrograma.Visible = false;
    }
    protected void btnEjecucionTerritorial_Click(object sender, EventArgs e)
    {
        if (Page.ToString() != "ASP.ejecucionterritoriallist_aspx")
        Server.Transfer("EjecucionTerritorialList.aspx", true);
    }
    protected void btnPlanesProgramas_Click(object sender, EventArgs e)
    {
        if(	Page.ToString() !=	"ASP.sigplanprogramalist_aspx")
        Server.Transfer("SigPlanProgramaList.aspx?SSM_ID=12", true);
    }
    protected void btn_Click(object sender, EventArgs e)
    {
        if (Page.ToString() != "ASP.ejecucionPresupuestal_aspx")
            Server.Transfer("EjecucionPresupuestal.aspx?SSM_ID=13", true);
    }
    [Anthem.Method]
    protected void btncambiarClave_Click(object sender, ImageClickEventArgs e)
    {
        string strScript = @"<script language=""javascript""> Abrir();</script>";
        Anthem.Manager.RegisterPageScriptBlock("Abrir", strScript);
    }
    protected void btnIndicadores_Click(object sender, EventArgs e)
    {
        if (Page.ToString() != "ASP.indicadoresListado_aspx")
            Server.Transfer("IndicadoresListado.aspx?SSM_ID=24", true);
    }
    //protected void btnRecursosIva_Click(object sender, EventArgs e)
    //{
    //    btnPlanInversion.Visible = true;
    //    btnPlanPrograma.Visible = true;
    //    if (Page.ToString() != "ASP.ejecucionPresupuestal_aspx")
    //        Server.Transfer("RecursosIvaListado.aspx?SSM_ID=13", true);
        
    //    //preguntar si hicieron cick sobre el boton recursos iva si es asi mostrar los botones de lo contrario ocultarlos

    //}
    protected void Button1_Click(object sender, EventArgs e)
    {

    }
    protected void LinkButtonCambiarClave_Click(object sender, EventArgs e)
    {
        string strScript = @"<script language=""javascript""> Abrir();</script>";
        Anthem.Manager.RegisterPageScriptBlock("Abrir", strScript);
    }
}
